import Layout from '@/Layout'
import Home from '@/pages/Home'
import AdminList from '@/pages/AdminList'
import ShopList from '@/pages/ShopList'
import FoodList from '@/pages/FoodList'
import OrderList from '@/pages/OrderList'
import Login from '@/pages/Login'

export default [
  {
    path: "/home",
    component: Layout,
    children:[
      {
        path:"",
        component: Home
      },
      {
        path:"/adminList",
        component: AdminList,
        meta: ["菜单管理", "管理员列表"]
      },
      {
        path:"/shopList",
        component: ShopList,
        meta: ["数据管理", "商家列表"]
      },
      {
        path:"/foodList",
        component: FoodList,
        meta: ["数据管理", "食品列表"]
      },
      {
        path:"/orderList",
        component: OrderList,
        meta: ["数据管理", "订单列表"]
      }
    ]
  },
  // 注册Login路由组件
  {
    path: '/',
    component: Login
  }
]